<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>输入操作数</title>
</head>
<body>
求代数和<br/>
<s:form action="sum" namespace="/struts">
	<%--<s:textfield name="param1" label="操作数1" value='<s:property value="param1"/>'/> --%>
	操作数1:<input name="param1" value="<s:property value='param1'/>"/>
	<s:textfield name="param2" label="操作数2" value="0"/>
	<s:submit value="代数和"></s:submit>
</s:form>
<h1><s:property value="param1"/>
actionError: <s:actionerror/>
actionMessage: <s:actionmessage/>
FieldError: <s:fielderror/>
一条：
<s:fielderror>
  <s:param>fieldErrorMsg</s:param>
</s:fielderror>
</h1>
</body>
</html>